<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('template/default/space_index|template/default/header|template/default/space_feed_li|template/default/space_comment_li|template/default/footer', '1229866859', 'template/default/space_index');?><?php $_TPL['nosidebar']=1; ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/style.css);
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="headerwarp">
<h1 class="logo"><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h1>
<ul class="menu">
<?php if($_SGLOBAL['supe_uid']) { ?>
<li><a href="space.php?do=home">首页</a></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a></li>
<li><a href="network.php">随便看看</a></li>

<?php if($_SGLOBAL['appmenu']) { ?>
<?php if($_SGLOBAL['appmenus']) { ?>
<li class="ucmenu" onmouseover="subop(this)" onmouseout="subop(this)" >
<a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a>
<ul id="ucmenu" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
</li>
<?php } else { ?>
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php } ?>
<?php } ?>

<li><a href="space.php?do=pm">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li>
<?php if(!empty($_SGLOBAL['member']['notenum'])) { ?><li class="notify"><a href="space.php?do=notice"><?=$_SGLOBAL['member']['notenum']?>条新通知</a></li><?php } ?>
<?php } else { ?>
<li><a href="index.php">首页</a></li>
<li><a href="network.php">随便看看</a></li>
<li><a href="help.php">帮助</a></li>
<?php } ?>
</ul>

<div class="nav_account">
<?php if($_SGLOBAL['supe_uid']) { ?>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" alt="<?=$_SN[$_SGLOBAL['supe_uid']]?>" width="20" height="20" /></a>
<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="loginName"><?=$_SN[$_SGLOBAL['supe_uid']]?></a>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?>(<?=$_SGLOBAL['supe_username']?>)<?php } ?>
<br />
<?php if(empty($_SCONFIG['closeinvite'])) { ?><a href="cp.php?ac=invite">邀请</a> | <?php } ?><a href="cp.php">设置</a> | <a href="cp.php?ac=privacy">隐私</a> | <a href="cp.php?ac=common&op=logout">退出</a>
<?php } else { ?>
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="login_thumb"><img src="<?php echo avatar($_SGLOBAL[supe_uid],small); ?>" width="20" height="20" /></a>
欢迎您<br>
<a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a> | 
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a>
<?php } ?>
</div>
</div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">

<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li><img src="image/app/mtag.gif"><a href="space.php?do=mtag">群组</a><em><a href="cp.php?ac=thread">话题</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>

<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit"  />
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="button">注册</a>
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">
<?php } ?>

<?php } ?>


<?php if($narrowlist||$widelist) { ?>
<script type="text/javascript" src="source/script_swfobject.js"></script>
<?php } ?>

<div id="space_page">

<div id="ubar">
<div id="space_avatar">
<img src="<?php echo avatar($space[uid],big); ?>" alt="<?=$_SN[$space['uid']]?>" />
</div>

<?php if(!$space['isfriend']) { ?>
<div class="borderbox">
如果您认识<?=$_SN[$space['uid']]?>，可以添加为好友。这样，您就可以第一时间关注到好友的更新动态。<br />
<img src="image/icon/friend.gif" align="absmiddle"> <a href="cp.php?ac=friend&op=add&uid=<?=$space['uid']?>" id="a_friend" onclick="ajaxmenu(event, this.id, 99999, '', -1)">把<?=$_SN[$space['uid']]?>加为好友</a></p>
</div>
<?php } ?>

<ul class="line_list">
<?php if($space['self']) { ?>
<li><img src="image/icon/profile.gif" align="absmiddle"><a href="cp.php?ac=profile">编辑资料</a></li>
<?php } else { ?>
<li><img src="image/icon/poke.gif"><a href="cp.php?ac=poke&op=send&uid=<?=$space['uid']?>" id="a_poke" onclick="ajaxmenu(event, this.id, 99999, '', -1)">打个招呼</a></li>
<li><img src="image/icon/pm.gif"><a href="cp.php?ac=pm&uid=<?=$space['uid']?>" id="a_pm" onclick="ajaxmenu(event, this.id, 99999, '', -1)">发送消息</a></li>
<?php if($space['isfriend']) { ?>
<li><img src="image/icon/friend.gif"><a href="cp.php?ac=friend&op=ignore&uid=<?=$space['uid']?>" id="a_ignore" onclick="ajaxmenu(event, this.id, 99999)">解除好友</a></li>
<?php } ?>
<li><img src="image/icon/report.gif"><a href="cp.php?ac=common&op=report&idtype=space&id=<?=$space['uid']?>" id="a_report" onclick="ajaxmenu(event, this.id, 99999,'' , -1)">违规举报</a></li>
<?php if(checkperm('managespace')) { ?>
<li><img src="image/icon/profile.gif"><a href="admincp.php?ac=space&op=manage&uid=<?=$space['uid']?>" id="a_manage">管理用户</a></li>
<?php } ?>
<?php } ?>

<?php if(is_array($space['userapp'])) { foreach($space['userapp'] as $value) { ?>
<?php if($value['allowprofilelink'] && $value['profilelink']) { ?>
<li id="space_app_profilelink_<?=$value['appid']?>">
<?php if($space['self']) { ?>
<a href="cp.php?ac=space&op=delete&appid=<?=$value['appid']?>&type=profilelink" id="user_app_profile_<?=$value['appid']?>" class="r_option float_del" style="position: static;" onclick="ajaxmenu(event, this.id, 99999)" title="删除">删除</a>
<?php } ?>
<img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><?php eval($value[profilelink]); ?>
</li>
<?php } ?>
<?php } } ?>
</ul>

<div id="space_appicon" class="box">
<ul class="app_list16">
<?php if($doinglist) { ?><li class="app-doing"><a href="space.php?uid=<?=$space['uid']?>&do=doing&view=me" title="记录"><image src="image/app/doing.gif" alt="记录" /></a></li><?php } ?>
<?php if($bloglist) { ?><li class="app-blog"><a href="space.php?uid=<?=$space['uid']?>&do=blog&view=me" title="日志"><image src="image/app/blog.gif" alt="日志" /></a></li><?php } ?>
<?php if($albumlist) { ?><li class="app-photo"><a href="space.php?uid=<?=$space['uid']?>&do=album&view=me" title="相册"><image src="image/app/album.gif" alt="相册" /></a></li><?php } ?>
<?php if($sharelist) { ?><li class="app-share"><a href="space.php?uid=<?=$space['uid']?>&do=share&view=me" title="分享"><image src="image/app/share.gif" alt="分享" /></a></li><?php } ?>
<?php if($threadlist) { ?><li class="app-thread"><a href="space.php?uid=<?=$space['uid']?>&do=thread&view=me" title="话题"><image src="image/app/thread.gif" alt="话题" /></a></li><?php } ?>

<?php if(is_array($space['userapp'])) { foreach($space['userapp'] as $value) { ?>
<?php if($value['allowsidenav']) { ?>
<li class="userapp-<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>&uid=<?=$space['uid']?>" title="<?=$value['appname']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>" alt="<?=$value['appname']?>" /></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>

<?php if($doinglist) { ?>
<h2>
<a href="space.php?uid=<?=$space['uid']?>&do=doing&view=me" class="r_option">全部</a>
记录
</h2>
<div id="space_doing" class="box">
<ul class="post_list line_list" id="doing_ul">
<?php if(is_array($doinglist)) { foreach($doinglist as $value) { ?>
<li><?=$value['message']?> (<a href="space.php?uid=<?=$value['uid']?>&do=doing&doid=<?=$value['doid']?>&goto=yes"><?php if($value['replynum']) { ?><?=$value['replynum']?>个<?php } ?>回复</a>)</li>
<?php } } ?>
</ul>
</div>
<?php } elseif($space['self']) { ?>
<h2>记录</h2>
<div class="box">
<a href="space.php?do=doing&view=me"><img src="image/intro_doing.gif" class="noimage"></a>
你还没有记录。<br><a href="space.php?do=doing&view=me">点击这里用一句记录自己生活的点点滴滴</a>
</div>	
<?php } ?>

<?php if($threadlist) { ?>
<h2>
<a href="space.php?uid=<?=$space['uid']?>&do=thread&view=me" class="r_option">全部</a>
话题
</h2>
<div id="space_thread" class="box">				
<ul class="post_list line_list">
<?php if(is_array($threadlist)) { foreach($threadlist as $value) { ?>
<li><a href="space.php?uid=<?=$value['uid']?>&do=thread&id=<?=$value['tid']?>"><?=$value['subject']?></a> <span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span>
</li>
<?php } } ?>
</ul>
</div>
<?php } elseif($space['self']) { ?>
<h2>话题</h2>
<div class="box">
<a href="cp.php?ac=thread"><img src="image/intro_thread.gif" class="noimage"></a>
你还没有话题。<br><a href="cp.php?ac=thread">点击这里可以在群组中与大家讨论话题</a>
</div>	
<?php } ?>

<?php if($sharelist) { ?>
<h2>
<a href="space.php?uid=<?=$space['uid']?>&do=share&view=me" class="r_option">全部</a>
分享
</h2>
<div id="space_share" class="box">
<ul class="post_list line_list">
<?php if(is_array($sharelist)) { foreach($sharelist as $value) { ?>
<li>
<div class="title">
<div class="r_option"><a href="space.php?uid=<?=$value['uid']?>&do=share&id=<?=$value['sid']?>">评论</a></div>
<?=$value['title_template']?>
</div>
<div class="feed">
<?php if($value['image']) { ?>
<a href="<?=$value['image_link']?>"><img src="<?=$value['image']?>" class="summaryimg image" alt="" width="70" /></a>
<?php } ?>
<div class="detail">
<?=$value['body_template']?>
<?php if('video' == $value['type']) { ?>
<br />
<a href="space.php?uid=<?=$value['uid']?>&do=share&id=<?=$value['sid']?>"><img src="image/vd.gif" width="80" alt="点击查看" /></a>
<?php } elseif('music' == $value['type']) { ?>
<br />
<a href="space.php?uid=<?=$value['uid']?>&do=share&id=<?=$value['sid']?>"><img src="image/music.gif" alt="点击查看" /></a>
<?php } elseif('flash' == $value['type']) { ?>
<br />
<a href="space.php?uid=<?=$value['uid']?>&do=share&id=<?=$value['sid']?>"><img src="image/flash.gif" alt="点击查看" /></a>
<?php } ?>
</div>
<div class="quote"><span id="quote" class="q"><?=$value['body_general']?></span></div>
</div>
</li>
<?php } } ?>
</ul>
</div>
<?php } elseif($space['self']) { ?>
<h2>分享</h2>
<div class="box">
<a href="space.php?do=share&view=me"><img src="image/intro_share.gif" class="noimage"></a>
你还没有分享。<br /><a href="space.php?do=share&view=me">点击这里可以在分享网址、视频、音乐、Flash动画</a>
</div>
<?php } ?>

<?php if(is_array($narrowlist)) { foreach($narrowlist as $value) { ?>
<div id="space_app_<?=$value['appid']?>">
<h2>
<?php if($space['self']) { ?>
<a href="cp.php?ac=space&op=delete&appid=<?=$value['appid']?>" id="user_app_<?=$value['appid']?>" class="r_option float_del" onclick="ajaxmenu(event, this.id, 99999)" title="删除">删除</a>
<?php } ?>
<a href="<?=$value['appurl']?>"><?=$value['appname']?></a>
</h2>
<?php if($value['myml']) { ?>
<div class="box">

<?php eval($value[myml]); ?>
</div>
<?php } ?>
</div>
<?php } } ?>
</div>

<div id="content">
<div class="tabs_header">
<a href="cp.php?ac=share&type=space&id=<?=$space['uid']?>" class="a_share" id="a_share" onclick="ajaxmenu(event, this.id, 99999, '', -1)">分享</a>
<a href="rss.php?uid=<?=$space['uid']?>" id="i_rss" title="订阅 RSS">订阅</a>
<ul class="tabs">
<li class="active myhome"><a href="space.php?uid=<?=$space['uid']?>"><span>主页</span></a></li>
<?php if(ckprivacy('doing')) { ?><li class="mydoing"><a href="space.php?uid=<?=$space['uid']?>&do=doing&view=me"><span>记录</span></a></li><?php } ?>
<?php if(ckprivacy('blog')) { ?><li class="myblog"><a href="space.php?uid=<?=$space['uid']?>&do=blog&view=me"><span>日志</span></a></li><?php } ?>
<?php if(ckprivacy('album')) { ?><li class="myalbum"><a href="space.php?uid=<?=$space['uid']?>&do=album&view=me"><span>相册</span></a></li><?php } ?>
<?php if(ckprivacy('share')) { ?><li class="myshare"><a href="space.php?uid=<?=$space['uid']?>&do=share&view=me"><span>分享</span></a></li><?php } ?>
<?php if(ckprivacy('mtag')) { ?><li class="mythread"><a href="space.php?uid=<?=$space['uid']?>&do=thread&view=me"><span>话题</span></a></li><?php } ?>
<?php if(ckprivacy('wall')) { ?><li class="mywall"><a href="space.php?uid=<?=$space['uid']?>&do=wall&view=me"><span>留言</span></a></li><?php } ?>
<?php if(ckprivacy('friend')) { ?><li class="myfriend"><a href="space.php?uid=<?=$space['uid']?>&do=friend&view=me"><span>好友</span></a></li><?php } ?>
</ul>
</div>


<div class="composer">

<strong class="index_name"<?php g_color($space[groupid]); ?>><?php if($_SCONFIG['realname'] && $space['name'] && $space['namestatus']) { ?><?php echo stripslashes($space['name']); ?> <em>(用户名:<?php echo stripslashes($space['username']); ?>)</em><?php } else { ?><?php echo stripslashes($space['username']); ?><?php if($space['name']) { ?> <em>(姓名:<?php echo stripslashes($space['name']); ?>)</em><?php } ?><?php } ?><?php g_icon($space[groupid]); ?></strong>
<?php if($isonline) { ?><span class="time">在线(<?=$isonline?>)</span><?php } ?>
<p class="gray">
<a href="<?=$space['domainurl']?>" onclick="javascript:setCopy('<?=$space['domainurl']?>');return false;" class="spacelink domainurl"><?=$space['domainurl']?></a>
</p>
<p>

<?php if($space['self']) { ?>
已有 <a href="space.php?uid=<?=$space['uid']?>&do=friend&view=visitor"><?=$space['viewnum']?></a> 人次访问, <a href="cp.php?ac=credit"><?=$space['credit']?></a>个积分 <a href="cp.php?ac=credit"><?=$space['creditstar']?></a>
<?php } else { ?>
已有 <?=$space['viewnum']?> 人次访问, <?=$space['credit']?>个积分 <a href="do.php?ac=ajax&op=credit&uid=<?=$space['uid']?>" id="a_space_view" onclick="ajaxmenu(event, this.id, 99999)"><?=$space['creditstar']?></a>
<?php } ?>
</p>

<div class="current_status" id="mystate">
<?php if($space['mood']) { ?><a href="space.php?uid=<?=$space['uid']?>&do=mood" title="同心情"><img src="image/face/<?=$space['mood']?>.gif" alt="同心情" class="face" /></a> <?php } ?>
<?php if($space['spacenote']) { ?><?=$space['spacenote']?><?php } ?>
<?php if($space['self']) { ?>
<?php if(empty($space['mood']) && empty($space['spacenote'])) { ?>
您在做什么？
<?php } ?>
&nbsp;(<a href="javascript:;" onclick="mood_from();" title="更新状态">更新状态</a><span class="pipe">|</span><a href="space.php?uid=<?=$space['uid']?>&do=mood">同心情</a>)
<?php } ?>
</div>

<?php if($space['showprofile']) { ?>
<ul class="profile">
<?php if($space['sex']) { ?>
<li>性别：<?=$space['sex']?></li>
<?php } ?>
<?php if($space['birthday']) { ?>
<li>生日：<?=$space['birthday']?></li>
<?php } ?>
<?php if($space['blood']) { ?>
<li>血型：<?=$space['blood']?></li>
<?php } ?>
<?php if($space['marry']) { ?>
<li>婚恋：<?=$space['marry']?></li>
<?php } ?>
<?php if($space['reside']) { ?>
<li>居住：<?=$space['reside']?></li>
<?php } ?>
<?php if($space['birth']) { ?>
<li>家乡：<?=$space['birth']?></li>
<?php } ?>
<?php if($space['qq']) { ?>
<li>QQ：<?=$space['qq']?></li>
<?php } ?>
<?php if($space['msn']) { ?>
<li>MSN：<?=$space['msn']?></li>
<?php } ?>

<?php if(is_array($fields)) { foreach($fields as $fieldid => $value) { ?>
<?php if($space["field_$fieldid"] && empty($value['invisible'])) { ?>
<?php $fieldvalue = $space["field_$fieldid"]; $urlvalue = rawurlencode($fieldvalue); ?>
<li><?=$value['title']?>：<?php if($value['allowsearch']) { ?>
<a href="network.php?ac=space&field_<?=$fieldid?>=<?=$urlvalue?>&searchmode=1"><?=$fieldvalue?></a>
<?php } else { ?><?=$fieldvalue?><?php } ?></li>
<?php } ?>
<?php } } ?>
</ul>
<?php } ?>				

</div>


<?php if($feedlist) { ?>
<div id="space_feed" class="feed">
<h3 class="feed_header">
<span class="r_option">
<a href="space.php?uid=<?=$space['uid']?>&do=feed&view=me" class="action">全部</a>
</span>
<span class="entry-title">个人动态</span>
</h3>
<div class="box_content">
<ul>
<?php if(is_array($feedlist)) { foreach($feedlist as $value) { ?>
<li id="feed_<?=$value['feedid']?>_li">
<div style="width:100%;overflow:hidden;">
<?php if($value['uid'] && $value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=feed&op=delete&feedid=<?=$value['feedid']?>" class="float_delete" id="a_feed_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)" title="删除">删除</a>
<?php } elseif($value['uid'] && $space['self'] && $notime) { ?>
<a href="cp.php?ac=feed&op=ignore&icon=<?=$value['icon']?>&uid=<?=$value['uid']?>&feedid=<?=$value['feedid']?>" id="a_feedicon_<?=$value['feedid']?>" onclick="ajaxmenu(event, this.id, 99999)" class="float_cancel" title="屏蔽">屏蔽</a>
<?php } ?>
<a class="type" href="space.php?uid=<?=$_GET['uid']?>&do=feed&view=<?=$_GET['view']?>&appid=<?=$value['appid']?>&icon=<?=$value['icon']?>" title="只看此类动态"><img src="<?=$value['icon_image']?>" /></a><?=$value['title_template']?> 
<?php if($value['appid']==UC_APPID) { ?>
<?php if($value['body_data']['sid']) { ?>
(<a href="space.php?uid=<?=$value['uid']?>&do=share&id=<?=$value['body_data']['sid']?>" target="_blank">评论</a>)
<?php } elseif($value['body_data']['doid']) { ?>
(<a href="space.php?uid=<?=$value['uid']?>&do=doing&doid=<?=$value['body_data']['doid']?>" target="_blank">回复</a>)
<?php } ?>
<?php } ?>
<?php if(empty($notime)) { ?><span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span><?php } ?>
<div class="feed_content">
<?php if($value['image_1']) { ?>
<a href="<?=$value['image_1_link']?>"><img src="<?=$value['image_1']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_2']) { ?>
<a href="<?=$value['image_2_link']?>"><img src="<?=$value['image_2']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_3']) { ?>
<a href="<?=$value['image_3_link']?>"><img src="<?=$value['image_3']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['image_4']) { ?>
<a href="<?=$value['image_4_link']?>"><img src="<?=$value['image_4']?>" class="summaryimg" /></a>
<?php } ?>
<?php if($value['body_template']) { ?>
<div class="detail" <?php if($value['image_3']) { ?>style="clear: both;"<?php } ?>>
<?=$value['body_template']?>
</div>
<?php } ?>
<?php if($value['appid']==UC_APPID) { ?>
<?php if(!empty($value['body_data']['flashvar'])) { ?>
<div class="media">
<img src="image/vd.gif" alt="点击播放" onclick="javascript:showFlash('<?=$value['body_data']['host']?>', '<?=$value['body_data']['flashvar']?>', this, '<?=$value['feedid']?>');" style="cursor:pointer;" />
</div>
<?php } elseif(!empty($value['body_data']['musicvar'])) { ?>
<div class="media">
<img src="image/music.gif" alt="点击播放" onclick="javascript:showFlash('music', '<?=$value['body_data']['musicvar']?>', this, '<?=$value['feedid']?>');" style="cursor:pointer;" />
</div>
<?php } elseif(!empty($value['body_data']['flashaddr'])) { ?>
<div class="media">
<img src="image/flash.gif" alt="点击查看" onclick="javascript:showFlash('flash', '<?=$value['body_data']['flashaddr']?>', this, '<?=$value['feedid']?>');" style="cursor:pointer;" />
</div>
<?php } ?>
<?php } ?>
<?php if($value['body_general']) { ?>
<div class="quote"><span class="q"><?=$value['body_general']?></span></div>
<?php } ?>
</div>
</div>
</li>


<?php } } ?>
</ul>
</div>
</div>
<?php } ?>

<?php if($albumlist) { ?>
<div id="space_photo">
<h3 class="feed_header">
<a href="space.php?uid=<?=$space['uid']?>&do=album&view=me" class="r_option">全部</a>
相册			
</h3>
<table cellspacing="4" cellpadding="4">
<tr>
<?php if(is_array($albumlist)) { foreach($albumlist as $key => $value) { ?>
<td width="85" align="center"><a href="space.php?uid=<?=$space['uid']?>&do=album&id=<?=$value['albumid']?>"><img src="<?=$value['pic']?>" alt="<?=$value['albumname']?>" width="70" /></a></td>
<td width="165">
<h6><a href="space.php?uid=<?=$space['uid']?>&do=album&id=<?=$value['albumid']?>" title="<?=$value['albumname']?>"><?=$value['albumname']?></a></h6>
<p class="gray"><?=$value['picnum']?> 张照片</p>
<p class="gray">更新于 <?php echo sgmdate('m-d',$value[dateline],1); ?></p>
</td>
<?php if($key%2==1) { ?></tr><tr><?php } ?>
<?php } } ?>
</tr>
</table>
</div>
<?php } elseif($space['self']) { ?>
<div>
<h3 class="feed_header">相册</h3>
<div style="padding:10px;">
<a href="cp.php?ac=upload"><img src="image/intro_album.gif" align="absmiddle"></a>
你还没有相册。<a href="cp.php?ac=upload">点击这里可以上传图片到自己的相册</a>
</div>
</div>
<?php } ?>

<?php if($bloglist) { ?>
<div id="space_blog" class="feed">
<h3 class="feed_header">
<a href="space.php?uid=<?=$space['uid']?>&do=blog&view=me" class="r_option">全部</a>
日志
</h3>
<ul class="line_list">
<?php if(is_array($bloglist)) { foreach($bloglist as $value) { ?>
<li>
<h4><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>"><?=$value['subject']?></a></h4>
<div class="detail">
<?=$value['message']?>
</div>
<p class="stat"><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>">阅读全文</a><span class="pipe">|</span><span class="time"><?php echo sgmdate('m-d H:i',$value[dateline],1); ?></span><span class="pipe">|</span><?php if($value['replynum']) { ?><a href="space.php?uid=<?=$space['uid']?>&do=blog&id=<?=$value['blogid']?>#comment"><?=$value['replynum']?>人评论</a><?php } else { ?><span class="pipe">没有评论</span><?php } ?></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } elseif($space['self']) { ?>
<div>
<h3 class="feed_header">日志</h3>
<div style="padding:10px;">
<a href="cp.php?ac=blog"><img src="image/intro_blog.gif" align="absmiddle"></a>
你还没有日志。<a href="cp.php?ac=blog">点击这里可以写下自己的第一篇日志</a>
</div>
</div>
<?php } ?>

<?php if($mtaglist) { ?>
<div id="space_mtag">
<h3 class="feed_header">群组</h3>
<div class="mtagbox">
<?php if(is_array($mtaglist)) { foreach($mtaglist as $fieldid => $values) { ?>
<table cellspacing="0" cellpadding="0" class="infotable">
<tr>
<th width="100"><strong><?=$_SGLOBAL['profield'][$fieldid]['title']?></strong></th>
<td>
<?php $dot = ''; ?>
<?php if(is_array($values)) { foreach($values as $key => $value) { ?>
<?=$dot?><a href="space.php?do=mtag&tagid=<?=$value['tagid']?>" title="<?=$value['membernum']?>个人有同样的选择"><?=$value['tagname']?></a>
<?php $dot = '、'; ?>
<?php } } ?>
</td>
</tr>
</table>
<?php } } ?>
</div>
</div>
<?php } elseif($space['self']) { ?>
<div>
<h3 class="feed_header">群组</h3>
<div style="padding:10px;">
<a href="cp.php?ac=mtag"><img src="image/intro_mtag.gif" align="absmiddle"></a>
你还没有群组。<a href="cp.php?ac=mtag">点击这里可以创建自己的群组，与志同道合朋友一起交流</a>
</div>
</div>
<?php } ?>


<?php if(is_array($widelist)) { foreach($widelist as $value) { ?>
<?php if($value['myml']) { ?>
<div id="space_app_<?=$value['appid']?>" class="appbox">
<h3 class="feed_header">
<?php if($space['self']) { ?>
<a href="cp.php?ac=space&op=delete&appid=<?=$value['appid']?>" id="user_app_<?=$value['appid']?>" class="r_option float_del" onclick="ajaxmenu(event, this.id, 99999)" title="删除">删除</a>
<?php } ?>
<a href="<?=$value['appurl']?>"><?=$value['appname']?></a>
</h3>
<div  class="box" style="margin: 0 0 20px;">		
<?php eval($value[myml]); ?>
</div>
</div>
<?php } ?>
<?php } } ?>

<div id="comment" class="comments_list">
<h3 class="feed_header">
<a href="space.php?uid=<?=$space['uid']?>&do=wall&view=me" class="r_option">所有留言</a>
留言板
</h3>

<?php if(!$space['self']) { ?>
<div class="box">
<form action="cp.php?ac=comment" id="quick_commentform_<?=$space['uid']?>" name="quick_commentform_<?=$space['uid']?>" method="post" style="padding:0 0 0 5px;">
<a href="###" id="editface" onclick="showFace(this.id, 'comment_message');"><img src="image/facelist.gif" align="absmiddle" /></a><br>
<textarea name="message" id="comment_message" rows="4" cols="60" style="width:98%;" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea><br>
<input type="hidden" name="refer" value="space.php?uid=<?=$space['uid']?>" />
<input type="hidden" name="id" value="<?=$space['uid']?>" />
<input type="hidden" name="idtype" value="uid" />
<input type="hidden" name="commentsubmit" value="true" />
<input type="button" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="留言" onclick="ajaxpost('quick_commentform_<?=$space['uid']?>', 'comment_status', 'wall_add')" />
<span id="comment_status"></span>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form>
</div>
<?php } ?>

<div class="box_content">
<ul class="post_list a_list justify_list" id="comment_ul">
<?php if(is_array($walllist)) { foreach($walllist as $value) { ?>
<?php if(empty($ajax_edit)) { ?><li id="comment_<?=$value['cid']?>_li"><?php } ?>
<div class="avatar48"><a href="space.php?uid=<?=$value['authorid']?>"><img src="<?php echo avatar($value[authorid],small); ?>" alt="<?=$_SN[$value['authorid']]?>" class="avatar" /></a></div>
<div class="title">
<div class="r_option">
<?php if($value['authorid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=edit&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_edit" onclick="ajaxmenu(event, this.id, 99999, '', -1)">编辑</a>
<?php } ?>
<?php if($value['authorid']==$_SGLOBAL['supe_uid'] || $value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=delete&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_delete" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
<?php } ?>
<?php if($value['authorid']!=$_SGLOBAL['supe_uid'] && ($value['idtype'] != 'uid' || $space['self'])) { ?>
<a href="cp.php?ac=comment&op=reply&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_reply" onclick="ajaxmenu(event, this.id, 99999, '', -1)">回复</a>
<?php } ?>
</div>
<a href="space.php?uid=<?=$value['authorid']?>" id="author_<?=$value['cid']?>"><?=$_SN[$value['authorid']]?></a> <span class="time"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?></span>
</div>
<div class="detail" id="comment_<?=$value['cid']?>"><?=$value['message']?></div>
<?php if(empty($ajax_edit)) { ?></li><?php } ?>
<?php } } ?>
</ul>
</div>
</div>

</div>

<div id="obar">
<?php if($visitorlist) { ?>
<div class="sidebox">
<h2 class="title">
<a href="space.php?uid=<?=$space['uid']?>&do=friend&view=visitor" class="r_option">全部</a>
最近来访
</h2>
<ul class="avatar_list">
<?php if(is_array($visitorlist)) { foreach($visitorlist as $key => $value) { ?>
<li>
<div class="avatar48"><a href="space.php?uid=<?=$value['vuid']?>"><img src="<?php echo avatar($value[vuid],small); ?>" alt="<?=$_SN[$value['vuid']]?>" /></a></div>
<p<?php if($ols[$value['vuid']]) { ?> class="online_icon_p"<?php } ?>><a href="space.php?uid=<?=$value['vuid']?>" title="<?=$_SN[$value['vuid']]?>"><?=$_SN[$value['vuid']]?></a></p>
<p class="time"><?php echo sgmdate('n月j日',$value[dateline],1); ?></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

<?php if($friendlist) { ?>
<div class="sidebox">
<h2 class="title">
<span class="r_option">
<a href="space.php?uid=<?=$space['uid']?>&do=friend&view=me" class="action">全部(<?=$space['friendnum']?>)</a>
</span>
好友
</h2>
<ul class="avatar_list">
<?php if(is_array($friendlist)) { foreach($friendlist as $value) { ?>
<li>
<div class="avatar48"><a href="space.php?uid=<?=$value['fuid']?>"><img src="<?php echo avatar($value[fuid],small); ?>" alt="<?=$_SN[$value['fuid']]?>" class="avatar" /></a></div>
<p<?php if($ols[$value['fuid']]) { ?> class="online_icon_p"<?php } ?>><a href="space.php?uid=<?=$value['fuid']?>"><?=$_SN[$value['fuid']]?></a></p>
</li>
<?php } } ?>
</ul>
</div>
<?php } elseif($space['self']) { ?>
<div class="sidebox">
<h2 class="title">好友</h2>
<div style="padding:10px;">
<a href="cp.php?ac=friend&op=find"><img src="image/intro_friend.gif" class="noimage"></a>
你还没有好友。<br><a href="cp.php?ac=friend&op=find">点这里寻找可能认识的人</a>
</div>
</div>
<?php } ?>

</div>
</div>


<div id="mood_form" style="display:none">
<form method="post" action="cp.php?ac=doing" id="moodform">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="40"><a href="###" id="face" onclick="showFace(this.id, 'message');"><img src="image/facelist.gif" align="absmiddle" /></a></td>
<td>
<input type="text" name="message" id="message" value="" size="30" class="t_input" />
<input type="hidden" name="addsubmit" value="true" />
<input type="hidden" name="spacenote" value="true" />
</td>
<td>&nbsp;<input type="button" id="add" name="add" value="更新" class="submit" onclick="ajaxpost('moodform', 'mystate', 'reloadMood');" /></td>
<td>&nbsp;<a href="javascript:;" onclick="mood_form_cancel();">取消</a></td>
</tr>
</table>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
</form>
</div>

<script type="text/javascript">
var old_html = '';
function reloadMood(showid, result) {
var x = new Ajax();
x.get('do.php?ac=ajax&op=getmood', function(s){
$('mystate').innerHTML = s;
});
}
function mood_from() {
old_html = $('mystate').innerHTML;
$('mystate').innerHTML = $('mood_form').innerHTML;
}
function mood_form_cancel() {
$('mystate').innerHTML = old_html;
}
</script>
<?php if($_GET['theme']) { ?><div class="nn">您是否想使用这款个性风格?<br /><a href="cp.php?ac=theme&op=use&dir=<?=$_GET['theme']?>">[应用]</a><a href="cp.php?ac=theme">[取消]</a></div><?php } ?>		
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<?php if(empty($_TPL['nosidebar'])) { ?>
</div>
<!--/mainarea-->
<div id="bottom"></div>
</div>
<!--/main-->
<?php } ?>

<div id="footer" title="<?php echo debuginfo(); ?>">

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
<p>
Powered by <a  href="http://u.discuz.net" target="_blank"><strong>UCenter Home</strong></a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
&copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>

</body>
</html>
<?php } ?>
<?php ob_out();?>